//
//  UserData.swift
//  ChinaLandMark
//
//  Created by Felix Hi on 2021/6/29.
//

import SwiftUI
import Combine

// final表示这个类不能被继承了, 已经是最终的效果了
final class UserData: ObservableObject {
    var objectWillChange = PassthroughSubject<UserData, Never>()
    
    var userLandmarks = landmarks {
        didSet {
            objectWillChange.send(self)
        }
    }
}
